public class Factory {
    public Fruit CreateFruit(String Kind){
        if (Kind.equals("A")){
            return new Fruit();
        }
        if(Kind.equals("B")){
            return new Fruit();
        }
        return null;
    }
}
